combobox: Make scrolling work again
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Mar 2012 11:06:04 +0000 (07:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Mar 2012 11:08:01 +0000 (07:08 -0400)
Select for scroll events, making it possible to use a scroll
wheel to change the combobox.

gtk/gtkcombobox.c

index 6cbcb39192513c8e289cfa65ac03a3b6c009b959..53fe1b1ea362b8a5233e5f47c2d1486560ac1a08 100644 (file)
@@ -3133,6 +3133,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
 
       priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
       gtk_container_add (GTK_CONTAINER (priv->box), priv->arrow);
+      gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
 
       gtk_widget_show_all (priv->button);
     }
@@ -3149,6 +3150,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
 
       priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
       gtk_container_add (GTK_CONTAINER (priv->button), priv->arrow);
+      gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
       gtk_widget_show_all (priv->button);
     }